package com.tju.backend.resources.controller.attest;

import com.tju.backend.dao.sys_versions.SysVersionsMapper;
import com.tju.backend.utils.result.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 版本信息
 *
 * @USER: CLS
 */
@RestController
public class VersionsController {

    private final String prefix = "version";

    @Autowired
    private SysVersionsMapper versionsMapper;

    @PostMapping(prefix + "/getDate.do")
    public Result<Object> getDate() {
        return ResultUtil.success(ResultEnum.SUCCESS, versionsMapper.selectList(null));
    }
}
